<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:directive.page language="java"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>欢迎使用福建省电信有限公司人才招聘管理系统</title>
		<%@ include file="/commons/includes/head.jspf"%>
		<%@ include file="/commons/includes/timepicker.jspf"%>
		<%@ include file="/commons/extremecomponents/extremetable.jspf"%>
		<script type="text/javascript"
			src='<c:url value="/base/dictSpecial.js" />'></script>
	</head>
	<body>
		<form name="dictSpecial" method="post" action="dictSpecial.shtml">
			<input type="hidden" id="event" name="event" value="save" />
			<input type="hidden" name="type" value="${form.type}" />
			<input type="hidden" name="dictionaries[0].id"
				value="${dictionary.id}" />
			<input type="hidden" name="dictionaries[0].value"
				value="${dictionary.value}" />
			<input type="hidden" name="dictionaries[1].id" value="${refDict.id}" />
			<input type="hidden" name="dictionaries[1].value"
				value="${refDict.value}" />
			<input type="hidden" id="itemLength" value="${fn:length(dicts)}" />
			<button type="button" class="btn2" id="btnSave">
				保 存
			</button>
			<div class="eXtremeTable">
				<table width="100%" class="tableRegion" id="itemList">
					<thead>
						<tr>
							<td width="20%" class="tableHeader">
								<c:out value="${dictionary.label}" />
							</td>
							<td class="tableHeader">
								<c:out value="${refDict.label}" />
							</td>
							<td width="8%" class="tableHeader">
								[
								<a title="添加工作经历" id="addNewItem" href="#">新增</a>]
							</td>
						</tr>
					</thead>
					<tbody class="tableBody">
						<c:forEach items="${dicts}" var="dict" varStatus="status">
							<tr class="odd" id="item_${status.index}">
								<td>
									<input type="text" class="text required"
										name="FValue[${status.index}]" value="${dict.label}" />
								</td>
								<td>
									<input type="text" class="text required"
										name="SValue[${status.index}]" value="${dict.value}" />

								</td>
								<td align="center">
									[
									<a title="删除"
										onclick="javascript:delRow('item_${status.index}',false,itemList);"
										href="#">删除</a> ]
								</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</form>
		<br />
		<div style="display: none">
			<table>
				<tbody id="emptyItem">
					<tr class="odd" id="item_{0}">
						<td>
							<input type="text" class="text required" name="FValue[{0}]" />
						</td>
						<td>
							<input type="text" class="text required" name="SValue[{0}]" />

						</td>
						<td align="center">
							[
							<a title="删除"
								onclick="javascript:delRow('item_{0}',false,itemList);"
								href="#">删除</a> ]
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</body>
</html>